﻿@page "/tables/filter"
@inject IStringLocalizer<TablesFilter> Localizer

<h3>@Localizer["TablesFilterTitle"]</h3>

<h4>@Localizer["TablesFilterDesc"]</h4>

<ul class="ul-demo mt-3">
    <li>@((MarkupString)Localizer["TablesFilterDescLi1"].Value)</li>
    <li>@((MarkupString)Localizer["TablesFilterDescLi2"].Value)</li>
</ul>

<DemoBlock Title="@Localizer["FilterableTitle"]"
           Introduction="@Localizer["FilterableIntro"]"
           Name="Filterable"
           Demo="typeof(Demos.Table.TablesFilter.TablesFilterable)">
    <p>@((MarkupString)Localizer["FilterableP"].Value)</p>
    <ul class="ul-demo mb-3">
        <li>@((MarkupString)Localizer["FilterableLi1"].Value)</li>
        <li>@((MarkupString)Localizer["FilterableLi2"].Value)</li>
        <li>@((MarkupString)Localizer["FilterableLi3"].Value)</li>
        <li>@((MarkupString)Localizer["FilterableLi4"].Value)</li>
    </ul>
    <div>@((MarkupString)Localizer["FilterableDiv"].Value)</div>
    <Alert ShowBar="true" Color="Color.Info" class="mt-3">@((MarkupString)Localizer["FilterableAlert"].Value)</Alert>
</DemoBlock>

<DemoBlock Title="@Localizer["FilterTemplateTitle"]"
           Introduction="@Localizer["FilterTemplateIntro"]"
           Name="FilterTemplate" Demo="typeof(Demos.Table.TablesFilter.TablesFilterTemplate)">
</DemoBlock>

<DemoBlock Title="@Localizer["ShowFilterHeaderTitle"]"
           Introduction="@Localizer["ShowFilterHeaderIntro"]"
           Name="ShowFilterHeader"
           Demo="typeof(Demos.Table.TablesFilter.TablesShowFilterHeader)">
</DemoBlock>

<DemoBlock Title="@Localizer["DefaultSortTitle"]"
           Introduction="@Localizer["DefaultSortIntro"]"
           Name="DefaultSort"
           Demo="typeof(Demos.Table.TablesFilter.TablesFilterDefaultSort)">
    <ul class="ul-demo mb-3">
        <li>@((MarkupString)Localizer["DefaultSortLi1"].Value)</li>
        <li>@((MarkupString)Localizer["DefaultSortLi2"].Value)</li>
    </ul>
    <p>@Localizer["DefaultSortP"]</p>
</DemoBlock>

<DemoBlock Title="@Localizer["SortListTitle"]"
           Introduction="@Localizer["SortListIntro"]"
           Name="SortString"
           Demo="typeof(Demos.Table.TablesFilter.TablesFilterSortString)">
    <p>@((MarkupString)Localizer["SortListP"].Value)</p>
</DemoBlock>

<DemoBlock Title="@Localizer["OnSortTitle"]"
           Introduction="@Localizer["OnSortIntro"]"
           Name="OnSort"
           Demo="typeof(Demos.Table.TablesFilter.TablesFilterOnSort)">
    <p>@((MarkupString)Localizer["OnSortP"].Value)</p>
</DemoBlock>

<DemoBlock Title="@Localizer["SetFilterInCodeTitle"]"
           Introduction="@Localizer["SetFilterInCodeIntro"]"
           Name="SetFilterInCode"
           Demo="typeof(Demos.Table.TablesFilter.TablesSetFilterInCode)">
</DemoBlock>
